package com.huawei.appmarket.service.reserve.game.view;

import android.os.Bundle;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.service.common.protocol.AppListFragmentProtocol;
import com.huawei.appgallery.foundation.service.common.protocol.request.AppListFragmentRequest;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.ShareInfo;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.BaseTitleBean;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.SpinnerItem;
import com.huawei.appmarket.framework.titleframe.title.BackSearchbtnTitle;
import o.cgv;
import o.cjf;
import o.cjk;
import o.cjm;
import o.cjo;
import o.djb;
import o.djf;
import o.ewm.c;
import o.ewm.h;
import o.ewm.j;
import o.ewm.n;

public class AppReservedActivity extends BaseActivity<AppReservedActivityProtocol> implements djb {
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (getActionBar() != null) {
            getActionBar().hide();
        }
        setContentView(h.ˊ);
        cgv.ˋ(this, c.ˎ, c.ॱˎ);
        ॱ(getString(n.ˈʽ));
        ᐝ();
    }

    private void ᐝ() {
        AppReservedActivityProtocol appReservedActivityProtocol = (AppReservedActivityProtocol) ʾ();
        if (appReservedActivityProtocol == null) {
            finish();
            return;
        }
        cjo appListFragmentProtocol = new AppListFragmentProtocol();
        appListFragmentProtocol.ˏ(new AppListFragmentRequest());
        appListFragmentProtocol.ॱ().ˊ(0);
        Fragment ˊ = cjk.ˎ().ˊ(new cjm(appReservedActivityProtocol.ˋ(), appListFragmentProtocol));
        if (ˊ instanceof TaskFragment) {
            ((TaskFragment) ˊ).ˋ(ˏॱ(), j.ꜟͺ, "gamereserved.fragment");
        }
    }

    public cjf ˊ(String str) {
        BaseTitleBean baseTitleBean = new BaseTitleBean();
        baseTitleBean.ॱ(str);
        cjf backSearchbtnTitle = new BackSearchbtnTitle(this, baseTitleBean);
        backSearchbtnTitle.ॱ(this);
        return backSearchbtnTitle;
    }

    public void ˊ(SpinnerItem spinnerItem) {
    }

    public void ʼʽ() {
        djf.ˋ(this, null, null);
    }

    public void ˋ(ShareInfo shareInfo) {
    }
}
